﻿#ifndef FUNCTIONRUNNABLE_H
#define FUNCTIONRUNNABLE_H

#include <QRunnable>
#include <functional>

class FunctionRunnable final : public QRunnable
{
public:
    FunctionRunnable(std::function<void()> fun);

private:
    void run() override;

private:
    std::function<void()> m_fun;
};

typedef FunctionRunnable FR;

#endif // FUNCTIONRUNNABLE_H
